clc,clear,close all

pkg load signal


%% load sweep data
load('ulog_rate_chirp_sweep_result.mat');


## cal sampling Time and freq
ts = median(diff(t));
fs = 1/ts;
printf("Sample frequencies: %d\n", fs);


figure(1);
subplot(3,1,1);
plot(t, chirp);
xlim([0 30]);
subplot(3,1,2);
plot(t, u);
xlim([0 30]);
subplot(3,1,3);
plot(t, y);
xlim([0 30]);
